from info_collect import db


class Classroom(db.Model):

    id = db.Column(db.String(36), primary_key=True)
    name = db.Column(db.String(64), index=True, unique=False)
    description = db.Column(db.Text())

    def __init__(self, id, name, desc):
        self.id = id
        self.name = name
        self.description = desc

    def __repr__(self):
        return '<Classroom %r, name: %r>' % (self.id, self.name)
